@isTest
private with sharing class WBSfdcInfoTest {

	public static testMethod void testhasCode(){
		WBSfdcInfo.instance().setCode('UID');
		system.assertEquals('UID',WBSfdcInfo.instance().getCode());
		system.assertEquals(true,WBSfdcInfo.instance().hasCode());
		
		WBSfdcInfo.instance().setCode('');
		system.assertEquals(false,WBSfdcInfo.instance().hasCode());
	}
	
	public static testMethod void testgetLeadCode(){
		lead l = new lead(LastName = 'testlead',
									Company = 'testcompany',
									Status = 'Open - Not Contacted');
		insert l;
		system.assertEquals(false,WBSfdcInfo.instance().LeadHasUID(l.id));
		WBSfdcInfo.instance().setLeadUID(l.id,'uid');
		system.assertEquals('uid',WBSfdcInfo.instance().getLeadUID(l.id));
		system.assertEquals(true,WBSfdcInfo.instance().LeadHasUID(l.id));
	}
}